#include <stdio.h>
#include <windows.h>

int count(char f[]);

int main()
{
    int characters[100]={0};
    int len=0;
    printf("Enter a string, and I will tell you how many characters are there!\n");
    scanf("%s",characters);
    printf("You inputed:\n%s\nThere are %d characters.",characters,count(characters));
    system("pause");
}

int count(char f[])
{
    int c=0;
    while(f[c]!=0)
    {
        c++;
    }
    return c;
}